﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/UserMaster.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Abs.App.WebForm2" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>T&T ABS: Register A New Account</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Register a new Account</h2>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <p>
        <asp:Label ID="Label1" runat="server" Text="Name "></asp:Label>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="Text_Name" ErrorMessage="(Please enter your Name)" 
            ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <asp:TextBox ID="Text_Name" runat="server" Width="200px"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="Label2" runat="server" Text="Email "></asp:Label>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="Text_Email" ErrorMessage="(Please enter a valid email)" 
            ForeColor="Red"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
            ControlToValidate="Text_Email" ErrorMessage="(Not a valid email!)" 
            ForeColor="Red" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        <br />
        <asp:TextBox ID="Text_Email" runat="server" Width="200px"></asp:TextBox>
    </p>
    
    <p>
        <asp:Label ID="Label3" runat="server" Text="Password "></asp:Label>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="Text_Password" ErrorMessage="(Please enter your password)" 
            ForeColor="Red"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="Text_Password" 
            ErrorMessage="(Password must be atleast 6 characters long)" ForeColor="Red" 
        ValidationExpression="[a-zA-Z0-9]{6,50}"></asp:RegularExpressionValidator>
        <br />
        <asp:TextBox ID="Text_Password" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
        <asp:PasswordStrength ID="PasswordStrength1" runat="server" Enabled="true" TargetControlID="Text_Password" PreferredPasswordLength="9" StrengthIndicatorType="Text">
        </asp:PasswordStrength>
    </p>
    <p>
        <asp:Label ID="Label4" runat="server" Text="Confirm Password "></asp:Label>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToCompare="Text_Cpassword" ControlToValidate="Text_Password" 
            ErrorMessage="(Your Password does not match)" ForeColor="Red"></asp:CompareValidator>
        <br />
        <asp:TextBox ID="Text_Cpassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
    </p>
    <p>
        <br />
        <asp:Button ID="Button_Submit" runat="server" Text="Submit" 
            onclick="Button_Submit_Click" />
    </p>
</asp:Content>
